Skip to content

fix(@angular-devkit/build-angular): propagate localize errors to full build result#26506

Merged
clydin merged 1 commit intoangular:mainfrom
clydin:i18n/fail-on-translation-error
Nov 28, 2023
Merged

fix(@angular-devkit/build-angular): propagate localize errors to full build result#26506
clydin merged 1 commit intoangular:mainfrom
clydin:i18n/fail-on-translation-error

Conversation

@clydin
Copy link
Copy Markdown
Member

@clydin clydin commented Nov 27, 2023

When using the application or browser-esbuild builders, localization errors were previously not being propagated to the final build result. In the event that the i18nMissingTranslation option was changed to error from the default of warning, the final build result would previously indicate a success if there were any missing translations present within the build. This has now been corrected and the build will now fully fail including a non-zero exit code in this case.

Closes #26499

@clydin clydin added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Nov 27, 2023
@clydin clydin requested a review from alan-agius4 November 27, 2023 21:21
… build result

When using the `application` or `browser-esbuild` builders, localization errors were
previously not being propagated to the final build result. In the event that the
`i18nMissingTranslation` option was changed to error from the default of warning, the
final build result would previously indicate a success if there were any missing translations
present within the build. This has now been corrected and the build will now fully fail
including a non-zero exit code in this case.
@clydin clydin force-pushed the i18n/fail-on-translation-error branch from 79ab56d to f47c55a Compare November 27, 2023 23:29
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Nov 28, 2023
@clydin clydin merged commit f679585 into angular:main Nov 28, 2023
@clydin clydin deleted the i18n/fail-on-translation-error branch November 28, 2023 15:03
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build option "i18nMissingTranslation" not working with esbuild based builds

2 participants